#!/bin/bash
while read DOMAIN
do
	nslookup $DOMAIN 2>&1 | grep "can't find $DOMAIN" > /dev/null
	if [[ $? != 0 ]]
	then
		echo $DOMAIN
	fi
done
